<?php

namespace catchAdmin\hunqing\tables\forms;

use catcher\library\form\Form;

class Userinfos extends Form
{


    public function fields(): array
    {
        return [
            self::input('name', '姓名')->col(self::col(12))->clearable(true)->required(),
            self::select('sex', '性别', 0)->options([
                [
                    'label' => '男',
                    'value' => 1
                ],
                [
                    'label' => '女',
                    'value' => 0
                ]
            ])->col(self::col(12)),
            self::datePicker('shengri', '出生年月','','date'),
            self::datePicker('vipdate', '会员开始日期','','date'),
            self::input('shuxiang', '属相')->disabled(true)->col(self::col(12)),
            self::input('shengao', '身高')->col(self::col(12))->clearable(true)->required(),
            self::input('tizhong', '体重')->col(self::col(12))->clearable(true)->required(),
            self::input('xueli', '学历')->col(self::col(12))->clearable(true)->required(),
            self::input('minzu', '民族')->col(self::col(12))->clearable(true)->required(),
            self::select('hunyin', '婚姻', 0)->options([
                [
                    'label' => '未婚',
                    'value' => '0'
                ],
                [
                    'label' => '离异',
                    'value' => '1'
                ],
                [
                    'label' => '丧偶',
                    'value' => '2'
                ],
                [
                    'label' => '短婚未育',
                    'value' => '3'
                ]
            ])->col(self::col(12)),
            self::select('che', '是否有车', 0)->options([
                [
                    'label' => '有',
                    'value' => 1
                ],
                [
                    'label' => '无',
                    'value' => 0
                ]
            ])->col(self::col(12)),
            self::select('chedai', '是否有车贷', 0)->options([
                [
                    'label' => '有',
                    'value' => 1
                ],
                [
                    'label' => '无',
                    'value' => 0
                ]
            ])->col(self::col(12)),

            self::select('fang', '是否有房产', 0)->options([
                [
                    'label' => '有',
                    'value' => 1
                ],
                [
                    'label' => '无',
                    'value' => 0
                ]
            ])->col(self::col(12)),

            self::select('fangdai', '是否有房贷', 0)->options([
                [
                    'label' => '有',
                    'value' => 1
                ],
                [
                    'label' => '无',
                    'value' => 0
                ]
            ])->col(self::col(12)),
            self::input('shouru', '收入(元)')->col(self::col(12))->clearable(true)->required(),
            self::input('fumu', '父母情况'),
            self::input('zinv', '子女情况'),
            self::input('jiemei', '兄弟姐妹情况'),
            self::input('yaoqiu', '择偶要求'),
            self::input('laoshi', '服务老师')->col(self::col(12))->clearable(true)->required(),
            self::input('lianxi', '联系方式')->col(self::col(12))->clearable(true)->required(),
            self::input('gongzuo', '工作内容'),
            self::image('照片', 'image', '')->col(self::col(12)),
            self::image('身份证', 'image1', '')->col(self::col(12)),
            self::image('离婚证', 'image2', '')->col(self::col(12)),
            self::image('户口本', 'image3', '')->col(self::col(12)),
            self::image('其他照片资料', 'image4', '')->col(self::col(12)),
        ];


    }

}